﻿using IcsSEMCtrl.Event.Device;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TKT.Lifter.CIM.Lifter.Event.Lifter
{
    [Serializable]
    class CDADataDisplayEvent : DeviceEvent
    {
        public static readonly string CLASS = "CDADataDisplayEvent";
        public static readonly string SPECIFIC_SUBJECT = "CDADataDisplay";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + CDADataDisplayEvent.SPECIFIC_SUBJECT;
        public string name;
        public short value;

        public CDADataDisplayEvent(string deviceId, string deviceType, string name, short value) : base(deviceId, deviceType)
        {
            this.name = name;
            this.value = value;
        }

        public new static string FormSubject(string id)
        {
            return CDADataDisplayEvent.SUBJECT + "." + id;
        }
    }
}
